import request from '@/utils/request'

export function save(data) {
  return request({
    url: `/zhongyi/fangji/save`,
    method: 'post',
    data
  })
}

export function getDetail(code) {
  return request({
    url: `/zhongyi/fangji/detail/${code}`,
    method: 'get'
  })
}

export function queryData(data) {
  return request({
    url: '/zhongyi/fangji/query',
    method: 'post',
    data
  })
}


export function deletes(code) {
  return request({
    url: `/zhongyi/fangji/delete/${code}`,
    method: 'get'
  })
}

export function restore(code) {
  return request({
    url: `/zhongyi/fangji/restore/${code}`,
    method: 'get'
  })
}
